//
//  ComponentInfo.h
//  Dolphin
//
//  Created by Handymood on 11-5-22.
//  Copyright 2011 __Hanydmood__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface LayerInfo : NSObject 
{
    NSString *type;
    NSString *resPath; 
    NSString *target_album_xml;
    
    CGFloat x;
    CGFloat y;
    CGFloat width;
    CGFloat height;
    
    //For Button Slide
    NSMutableArray   *imgArr;
    CGFloat    imgWidth;
    CGFloat    imgHeight;
    
    //For Video Player/Audio
    BOOL       autoPlay;
    BOOL       isLoop;
    
    //Audio
    BOOL       showButton;
    
    //For Image
    int             ratioMode;
    BOOL       useOriginalSize;
    
    //For Click Event:Target Id
    int             target_page_id;
    
    //For Image Scroll Feature
    int             scroll_width;
    int             scroll_height;
    
    //For Video Player Style
    int             style;
    
    NSString *msg;
    NSString *value;
    NSString *target_video_path;
    
    int             fade;
     
    float          startOffX;
    float          startOffY;
    float          startAlpha;    
    float          delay;
    float          duration;
    int             transitionType;
    
    int             ani;
    int             anistartindex;
    int             aniendindex;
    
    float          aniduration;
    int             anirepeat;
    
    NSString *aniprefix;
    NSString *anisuffix;
    int             discrete;
    
    NSString *hit_img;
}

@property(nonatomic,copy) NSString *type;
@property(nonatomic,copy) NSString *resPath;
@property(nonatomic,copy) NSString *target_album_xml;
@property(nonatomic,copy) NSString *value;
@property(nonatomic,copy) NSString *hit_img;

@property CGFloat x;
@property CGFloat y;
@property CGFloat width;
@property CGFloat height;

@property CGFloat imgWidth;
@property CGFloat imgHeight;

@property int fade;

@property(nonatomic,retain) NSMutableArray  *imgArr;

@property CGSize     imgSize;

@property BOOL       autoPlay;
@property BOOL       isLoop;
@property BOOL       showButton;

@property int             ratioMode;
@property BOOL       useOriginalSize;

@property int             target_page_id;

@property int             scroll_width;
@property int             scroll_height;

@property int             style;

@property(nonatomic,copy) NSString *msg;
@property(nonatomic,copy) NSString *target_video_path;

@property float          startOffX;
@property float          startOffY;
@property float          startAlpha;   
@property float          delay;
@property float          duration;
@property int             transitionType;

@property int             ani;
@property int             anistartindex;
@property int             aniendindex;
@property float          aniduration;
@property int             anirepeat;

@property int             discrete;

@property(nonatomic,copy) NSString *aniprefix;
@property(nonatomic,copy) NSString *anisuffix;

-(void) initDefaultSet;
-(void) copyWithNewInfoObject:(LayerInfo *) newInfoObj;
-(void) toString;
-(void) reset;

@end
